import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Employee.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.Test;
/**
 * A Test resource
 */
@singleton("default")
@parentResource(Employee)
model Enroll is Azure.ResourceManager.TrackedResource<EnrollProperties> {
  ...ResourceNameParameter<
    Resource = Enroll,
    KeyName = "enroll",
    SegmentName = "enrolls",
    NamePattern = ""
  >;
}

@armResourceOperations
interface Enrolls {
  /**
   * Get a Enroll.
   */
  get is ArmResourceRead<Enroll>;
}

@@doc(Enroll.name, "");
@@doc(Enroll.properties, "The resource-specific properties for this resource.");
